package day20;

import java.util.Scanner;

/**
 * @author tongchen
 * @create 2023-03-27 19:38
 */
public class Main {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        String s=scanner.nextLine();
        char[]chars=s.toCharArray();
        int left=0;
        int right= chars.length-1;
        while(left<right){
            char temp=chars[left];
            chars[left]=chars[right];
            chars [right]=temp;
            left++;
            right--;
        }
        System.out.println(new String(chars));
    }
}
